import http from "@/utils/http";
export const getList = (params) => {
  return http.get("/ethical/review/list", params);
};
//获取数据统计
export const getCount = (params) => {
  return http.get("/ethical/review/groups", params);
};
//编辑
export const editRecords = (params) => {
  return http.post(`/ethical/review/saveEthical`, params);
};
//删除
export const delRecords = (id) => {
  return http.del(`/ethical/review/${id}`);
};
//详情
export const recordsDetail = (id) => {
  return http.get(`/ethical/review/${id}`);
};
//导出
export const exportRecords = (params = {}) => {
  return http.post("/ethical/review/export", params, {
    responseType: "blob",
  });
};
